home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / StaticTextEditor.h < prev    next >
Text File  |  1997-08-20  |  2KB  |  71 lines

  1. /*
  2.  *  File:       StaticEditor.h
  3.  *  Summary:       A view that knows how to edit a TStaticText.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <1>    10/31/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZStaticText.h>
  17.  
  18. #include "BasePaneEditor.h"
  19.  
  20.  
  21. // ===================================================================================
  22. //    class CEditStaticTextCommand
  23. // ===================================================================================
  24. class CEditStaticTextCommand : public CBaseEditPaneCommand<TStaticText, SStaticTextInfo> {
  25.  
  26.     typedef CBaseEditPaneCommand<TStaticText, SStaticTextInfo> Inherited;
  27.  
  28. //-----------------------------------
  29. //    Initialization/Destruction
  30. //
  31. public:
  32.     virtual             ~CEditStaticTextCommand();
  33.     
  34.                         CEditStaticTextCommand(TStaticText* pane, const SStaticTextInfo& oldInfo, const SStaticTextInfo& newInfo);
  35.     
  36. //-----------------------------------
  37. //    Inherited API
  38. //
  39. public:
  40.     virtual    void         UpdatePane(const SStaticTextInfo& newInfo);
  41. };
  42.  
  43.  
  44. // ===================================================================================
  45. //    CStaticTextEditor
  46. // ===================================================================================
  47. class CStaticTextEditor : public CBasePaneEditor<TStaticText, SStaticTextInfo, CEditStaticTextCommand> {
  48.  
  49.     typedef CBasePaneEditor<TStaticText, SStaticTextInfo, CEditStaticTextCommand> Inherited;
  50.     
  51. //-----------------------------------
  52. //    Initialization/Destruction
  53. //
  54. public:
  55.     virtual                ~CStaticTextEditor();
  56.                         
  57.                         CStaticTextEditor(TView* superView);
  58.  
  59.     static     MReanimatable* Create(MReanimatable* parent);
  60.  
  61. //-----------------------------------
  62. //    Inherited API
  63. //
  64. protected:
  65.     virtual SStaticTextInfo GetEditorInfo() const;
  66.             
  67.     virtual void         SetEditorInfo(const SStaticTextInfo& info);
  68. };
  69.  
  70.  
  71.